#include "stdafx.h"
#include "ASN1Encoded.h"

namespace AppliedCryptography
{
	ASN1Encoded::ASN1Encoded()
	{
	};

	ASN1Encoded& ASN1Encoded::set(std::vector<byte>& value)
	{
		_value = value;
		return *this;
	};

	std::vector<byte> ASN1Encoded::encode() const
	{
		return _value;
	};

	unsigned int ASN1Encoded::size() const
	{
		return _value.size();
	};

	ASN1Encoded& ASN1Encoded::set(byte* value, unsigned int len)
	{
		for(unsigned int i=0; i<len; i++)
		{
			_value.push_back(value[i]);
		};

		return *this;
	};

	std::vector<byte> ASN1Encoded::getContentBits() const
	{
		std::vector<byte> buffer;
		return buffer;
	};
}; // namespace AppliedCryptography
